import request from '@/utils/request.js'


/**
 * 花王与刀王首页
 * @param {*} id 
 */
export function voteIndex(data) {
	return request({
		url: "/vote/index",
		method: 'POST',
		data
	})
}

/**
 * 花王与刀王砍一刀，送花
 * @param {*} id 
 */
export function handle_vote(data) {
	return request({
		url: "/vote/handle_vote",
		method: 'POST',
		data
	})
}

/**
 * 花王与刀王砍一刀，创建口令
 * @param {*} id 
 */
export function create_vote_password(data) {
	return request({
		url: "/vote/create_vote_password",
		method: 'POST',
		data
	})
}

/**
 * 花王与刀王砍一刀，解析口令
 * @param {*} id 
 */
export function check_vote_password(data) {
	return request({
		url: "/vote/check_vote_password",
		method: 'POST',
		data
	})
}

/**
 * 花王与刀王砍一刀，历史数据
 * @param {*} id 
 */
export function lastList(data) {
	return request({
		url: "/vote/list",
		method: 'POST',
		data
	})
}


